import Server from "../request";

import { hostURL } from "../utils/config";

const api = new Server(hostURL)
class CaozuoApi {
    async list() {
        return api.get('/idle')
    }

    async add(param) {
        return api.post('/idle', param)
    }

}

export default new CaozuoApi;